<ion-view view-title="资料完善" cache-view="false" hide-back-button="false" ng-init="init()">
  <ion-content>
    <section ng-if="isShowReason" style="padding: 10px; text-align: center;">
      <p color="red" class="red">您认证没有通过: {{state_reason}}</p>
    </section>
    <section class="truck_line track_line-edit fill_info">
      <ul>
        <li>
          <h4>姓名<span style="color: red">*</span></h4>
          <input type="text" placeholder="请输入姓名" ng-model="data.name">
        </li>
        <li>
          <h4>身份证号</h4>
          <input type="text" placeholder="请输入身份证号" ng-model="data.id_card_no">
        </li>
      </ul>
    </section>
    <section class="cert_list cert_list-single">
      <ul>
        <li ng-click="initCamera({type: 1, seq: 1, returnUrl: 'id_card_fs'})">
          <h3 style="text-align:center">二代身份证正面</h3>
          <div ng-show="!id_card_fs" class="upload"><label></label></div>
          <div align="center" ng-show="id_card_fs"><img ng-src="{{id_card_fs}}" style="height:130px"></div>
        </li>
        <li ng-click="initCamera({type: 1, seq: 2, returnUrl: 'id_card_rs'})">
          <h3 style="text-align:center">二代身份证背面</h3>
          <div ng-show="!id_card_rs" class="upload"><label></label></div>
          <div align="center" ng-show="id_card_rs"><img ng-src="{{id_card_rs}}" style="height:130px"></div>
        </li>
      </ul>
    </section>

    <section class="g_main" >
      <!-- 车主 -->
      <section class="truck_line track_line-edit fill_info">
        <ul>

          <li style="display: none;">
            <h4>船主姓名<span style="color: red">*</span></h4>
            <input type="text" placeholder="请输入姓名" ng-model="info.name">
          </li>
          <li>
            <h4>船名<span style="color: red">*</span></h4>
            <input type="text" placeholder="请输入船名" ng-model="info.ship_name">
          </li>
          <li class="select" ng-click="selectType()">
            <h4>船舶类型<span style="color: red">*</span></h4>
            <input disabled ng-model="info.vehicle_type_disp">
          </li>
          <li>
            <h4>Mmsi</h4>
            <input type="text" placeholder="请输入MMSI" ng-model="info.ship_mmsi">
          </li>
          <li>
            <h4>船舶识别号<span style="color: red">*</span></h4>
            <input type="text" placeholder="请输入船舶识别号" ng-model="info.vehicle_no">
          </li>
          <li ng-click="choosedate()">
            <h4>出厂年月<span style="color: red">*</span></h4>
            <input disabled  style="width: 160px" ng-model="info.ship_ex_date_disp"/>
          </li>
          <li>
          <h4>船籍港<span style="color: red">*</span></h4>
          <input type="text" placeholder="请输入船籍港" ng-model="info.ship_harbour">
          </li>
          <li class="select" ng-click="selectLoad()">
            <h4>载重(吨)<span style="color: red">*</span></h4>
            <input disabled placeholder="请输入载重" ng-model="info.vehicle_load_disp">
          </li>
          <li class="select" ng-click="selectLengh()">
            <h4>船长(米)<span style="color: red">*</span></h4>
            <input disabled placeholder="请输入船长" ng-model="info.vehicle_len_disp">
          </li>
          <li>
            <h4>船宽(米)</h4>
            <input type="text" placeholder="请输入船宽" ng-model="info.ship_width">
          </li>
          <li>
            <h4>型深(米)</h4>
            <input type="text" placeholder="请输入型深" ng-model="info.ship_depth">
          </li>
          <li>
            <h4>舱容(立方米)</h4>
            <input type="text" placeholder="请输入舱容" ng-model="info.ship_capactity">
          </li>
          <li>
            <h4>满载吃水(米)<span style="color: red">*</span></h4>
            <input type="text" placeholder="请输入满载吃水" ng-model="info.ship_full_load">
          </li>
          <li>
            <h4>空船吃水(米)<span style="color: red">*</span></h4>
            <input type="text" placeholder="请输入空船吃水" ng-model="info.ship_empty_load">
          </li>
          <li>
            <h4>舱口数量(个)</h4>
            <input type="text" placeholder="请输入舱口数量" ng-model="info.ship_hatchway">
          </li>
          <li>
            <h4>常用线路(起)</h4>
            <input  type="text" placeholder="请输起始地" ng-model="info.frequent_line_start" style="width: 95%">
          </li>
          <li>
            <h4>常用线路(目)</h4>
            <input  type="text" placeholder="请输入目的地" ng-model="info.frequent_line_end" style="width: 95%">
          </li>
        </ul>
      </section>
      <section class="cert_list">
        <ul>
          <li ng-click="initCamera({type: 2, seq: 2, returnUrl: 'driving_license_url'})">
            <h3 style="text-align:center">驾驶证</h3>
            <div ng-show="!driving_license_url" class="upload"><label></label></div>
            <div align="center" ng-show="driving_license_url"><img ng-src="{{driving_license_url}}" style="height:130px"/></div>
          </li>
          <li ng-click="initCamera({type: 2, seq: 3, returnUrl: 'vehicle_license_1_url'})">
            <h3 style="text-align:center">船舶年审证书<span style="color: red">*</span></h3>
            <div ng-show="!vehicle_license_1_url" class="upload"><label></label></div>
            <div align="center" ng-show="vehicle_license_1_url"><img ng-src="{{vehicle_license_1_url}}" style="height:130px"/></div>
          </li>
          <li ng-click="initCamera({type: 2, seq: 4, returnUrl: 'vehicle_license_2_url'})">
            <h3 style="text-align:center">船舶经营许可证<span style="color: red">*</span></h3>
            <div ng-show="!vehicle_license_2_url" class="upload"><label></label></div>
            <div align="center" ng-show="vehicle_license_2_url"><img ng-src="{{vehicle_license_2_url}}" style="height:130px"/></div>
          </li>
          <li ng-click="initCamera({type: 2, seq: 1, returnUrl: 'vehicle_photo_url'})">
            <h3 style="text-align:center">船舶照片<span style="color: red">*</span></h3>
            <div ng-show="!vehicle_photo_url" class="upload"><label></label></div>
            <div align="center" ng-show="vehicle_photo_url"><img ng-src="{{vehicle_photo_url}}" style="height:130px"/></div>
          </li>
        </ul>
      </section>
       <section>
        <ul>
          <li>
            &nbsp;&nbsp;说明：<span class="red">*</span>为必填项
          </li>
        </ul>
      </section>
      <button class="btn_save openwebview" ng-click="submitInfo()">确认</button>
    </section>
    <section class="g_main" ng-show="info.member_type == 1">
      <!-- 货主 -->
      <section class="truck_line track_line-edit fill_info">
        <p style="text-align:center;font-weight:bold;height:40px;padding-top:10px">只有企业货主才能开增值税发票</p>
      </section>
      <section class="truck_line track_line-edit fill_info">
        <ul>
          <li class="radio" style="padding:0px">
            <ion-toggle ng-model="info.is_corp" toggle-class="toggle-calm">是否企业货主</ion-toggle>
          </li>
          <li style="display: none;">
            <h4>货主姓名</h4>
            <input type="text" placeholder="请输入货主姓名" ng-model="info.name">
          </li>
          <li>
            <h4>固定电话</h4>
            <input type="tel" ng-model="info.areano" placeholder="请输入区号" style="float:left; width:80px"><span style="float:left">-</span><input type="tel" ng-model="info.telephone" placeholder="请输入固定电话" style="float:left; width:105px">
          </li>
          <li ng-show="info.is_corp">
            <h4>企业名称</h4>
            <input type="text" placeholder="请输入企业名称" ng-model="info.corp_name">
          </li>
          <li ng-show="info.is_corp">
            <h4>企业地址</h4>
            <input type="text" placeholder="请输入地址" ng-model="info.corp_addr">
          </li>
        </ul>
      </section>
      <section class="cert_list cert_list-single" ng-show="info.is_corp">
        <ul>
          <li class="ng-hide">
          </li>
          <li class="ng-hide">
          </li>
          <li ng-click="initCamera({type: 3, seq: 1, returnUrl: 'biz_license'})">
            <h3 style="text-align:center">营业执照</h3>
            <div ng-show="!biz_license" class="upload"><label></label></div>
            <div align="center" ng-show="biz_license" style="height:168px"><img ng-src="{{biz_license}}" style="height:100%"></div>
          </li>
        </ul>
      </section>
       <section>
        <ul>
          <li>
            &nbsp;&nbsp;说明：<span class="red">*</span>为必填项
          </li>
        </ul>
      </section>
      <button class="btn_save openwebview" ng-click="submitInfo()">确认</button>
    </section>
    <section class="g_main" ng-show="info.member_type == 3">
      <!-- 物流公司认证 -->
      <section class="truck_line track_line-edit fill_info corp_info">
        <ul>
          <li style="display: none;"><h4>公司名称</h4>  <input type="text" ng-model="info.name" placeholder="请输入物流公司名称"></li>
          <li><h4>企业名称</h4>  <input type="text" ng-model="info.corp_name" placeholder="请输入企业名称"></li>
          <li><h4>企业地址</h4>  <input type="text" ng-model="info.corp_addr" placeholder="请输入地址"></li>
          <li><h4>固定电话</h4>  <input type="tel" ng-model="info.areano" placeholder="请输入区号" style="float:left; width:80px"><span style="float:left">-</span><input type="tel" ng-model="info.telephone" placeholder="请输入固定电话" style="float:left; width:105px"></li>
          <li ng-click="selectArea()"><h4>所在地区</h4><input disabled ng-model="info.area_id_disp"/></li>
        </ul>
      </section>
      <section class="cert_list">
        <ul>
          <li ng-click="initCamera({type: 4, seq: 1, returnUrl: 'biz_license'})">
            <h3 style="text-align:center">营业执照</h3>
            <div ng-show="!biz_license" class="upload"><label></label></div>
            <div align="center" ng-show="biz_license"><img ng-src="{{biz_license}}" style="height:130px"/></div>
          </li>
          <li ng-click="initCamera({type: 4, seq: 2, returnUrl: 'biz_permit'})">
            <h3 style="text-align:center">营运许可证</h3>
            <div ng-show="!biz_permit" class="upload"><label></label></div>
            <div align="center" ng-show="biz_permit"><img ng-show="biz_permit" ng-src="{{biz_permit}}" style="height:130px"/></div>
          </li>
        </ul>
      </section>
       <section>
        <ul>
          <li>
            &nbsp;&nbsp;说明：<span class="red">*</span>为必填项
          </li>
        </ul>
      </section>
      <button class="btn_save openwebview" ng-click="submitInfo()">确认</button>
    </section>
  </ion-content>
</ion-view>
